﻿using System;
using System.Collections.Generic;
using System.Web;
using Huayou.Common;

namespace PayRoller.Code
{
    public class MemberParent : CommonBasePage
    {
        public string OrgSid = "";

        protected void CheckLogin()
        {
            if ((HttpContext.Current.Request.Cookies["Company.ID"] != null) && (HttpContext.Current.Request.Cookies["Company.ID"].Value != ""))
            {
                this.OrgSid = HttpContext.Current.Request.Cookies["Company.ID"].Value;
            }
            else
            {
                this.OrgSid = "";
                HttpContext.Current.Response.Redirect("~/Login.aspx");
            }
        }

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }
    }
}
